// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增绩效-绩效管理表数据 POST /workTaskManagement/add */
export async function workTaskManagementAdd(
  body: BIZAPI.WorkTaskManagementCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function workTaskManagementAdd(
  body: BIZAPI.WorkTaskManagementCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function workTaskManagementAdd(
  body: BIZAPI.WorkTaskManagementCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function workTaskManagementAdd(
  body: BIZAPI.WorkTaskManagementCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/workTaskManagement/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/workTaskManagement/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除绩效-绩效管理表数据 POST /workTaskManagement/delete */
export async function workTaskManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function workTaskManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function workTaskManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function workTaskManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/workTaskManagement/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/workTaskManagement/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取绩效-绩效管理表数据 POST /workTaskManagement/get */
export async function workTaskManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultWorkTaskManagementEntity>;

export async function workTaskManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultWorkTaskManagementEntity>>;

export async function workTaskManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultWorkTaskManagementEntity>;

export async function workTaskManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultWorkTaskManagementEntity>(
      `/app/workTaskManagement/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultWorkTaskManagementEntity>(
    `/app/workTaskManagement/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取绩效-绩效管理表VO数据 POST /workTaskManagement/getVo */
export async function workTaskManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultWorkTaskManagementResp>;

export async function workTaskManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultWorkTaskManagementResp>>;

export async function workTaskManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultWorkTaskManagementResp>;

export async function workTaskManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultWorkTaskManagementResp>(
      `/app/workTaskManagement/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultWorkTaskManagementResp>(
    `/app/workTaskManagement/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 评价 POST /workTaskManagement/judge */
export async function workTaskManagementJudge(
  body: BIZAPI.WorkTaskManagementEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function workTaskManagementJudge(
  body: BIZAPI.WorkTaskManagementEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function workTaskManagementJudge(
  body: BIZAPI.WorkTaskManagementEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function workTaskManagementJudge(
  body: BIZAPI.WorkTaskManagementEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/workTaskManagement/judge`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultObject>(`/app/workTaskManagement/judge`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取绩效-绩效管理表分页数据 POST /workTaskManagement/page */
export async function workTaskManagementPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageWorkTaskManagementEntity>;

export async function workTaskManagementPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageWorkTaskManagementEntity>>;

export async function workTaskManagementPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageWorkTaskManagementEntity>;

export async function workTaskManagementPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageWorkTaskManagementEntity>(
      `/app/workTaskManagement/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageWorkTaskManagementEntity>(
    `/app/workTaskManagement/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新绩效-绩效管理表数据 POST /workTaskManagement/update */
export async function workTaskManagementUpdate(
  body: BIZAPI.WorkTaskManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function workTaskManagementUpdate(
  body: BIZAPI.WorkTaskManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function workTaskManagementUpdate(
  body: BIZAPI.WorkTaskManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function workTaskManagementUpdate(
  body: BIZAPI.WorkTaskManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/workTaskManagement/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/workTaskManagement/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取绩效-绩效管理表VO分页数据 POST /workTaskManagement/voPage */
export async function workTaskManagementVoPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageWorkTaskManagementResp>;

export async function workTaskManagementVoPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageWorkTaskManagementResp>>;

export async function workTaskManagementVoPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageWorkTaskManagementResp>;

export async function workTaskManagementVoPage(
  body: BIZAPI.WorkTaskManagementQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageWorkTaskManagementResp>(
      `/app/workTaskManagement/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageWorkTaskManagementResp>(
    `/app/workTaskManagement/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
